Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT: implement adapter for QRules #107

Merged
merged 11 commits into from
Apr 24, 2024
Merged

Conversation

redeboer
Copy link
Member

@redeboer redeboer commented Apr 24, 2024

Closes #101

QRules adapter function

This PR makes it a lot easier to build AmpForm-DPD decay structures with QRules. All examples in the notebooks are now generated with QRules + AmpForm-DPD. Comes down to:

from ampform_dpd.adapter.qrules import to_three_body_decay

reaction = qrules.generate_transitions(...)
decay = to_three_body_decay(reaction)
builder = DalitzPlotDecompositionBuilder(decay, min_ls=True)
model = builder.formulate(reference_subsystem=1)

$\Lambda_c \to p K \pi$

In the lc2pkpi notebook, the resonances are now the same as the published study under https://lc2pkpi-polarimetry.docs.cern.ch.

Comparison plots match now 🎉

The reason was incorrect parity conservation on the production node in $J/\psi$ decays.

@redeboer redeboer added the ✨ Feature New feature added to the package label Apr 24, 2024
@redeboer redeboer added this to the 0.1.7 milestone Apr 24, 2024
@redeboer redeboer self-assigned this Apr 24, 2024
@redeboer redeboer merged commit e3fc71f into ComPWA:main Apr 24, 2024
25 checks passed
@redeboer redeboer deleted the qrules-adapter branch April 24, 2024 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature New feature added to the package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement ThreeBodyDecay convertor functions for QRules
1 participant